package Main;

import ArtificialNeuralNetwork.ArtificialNeuralNetwork;
import DataReadWrite.ReadData;
import Matrix.*;

public class Main {
	
	public Main(){
		
		ShowMatrix sm = new ShowMatrix();
		
		int row = 7;int col = 150;
		ReadData rd = new ReadData("Iris data 1.txt" ,col , row);
		
		int input_num = 4;int output_num = 3;
		
		double iris_data[][] = rd.get_data();
		
		double train[][] = Matrix.get_train(iris_data);
		double test[][] = Matrix.get_test(iris_data);
		
		double train_input[][] = Matrix.get_input(train, 4);
		double train_output[][] = Matrix.get_output(train, 3);
		
		double test_input[][] = Matrix.get_input(test, 4);
		double test_output[][] = Matrix.get_output(test, 3);
		
		int clust_num = 3;
		ArtificialNeuralNetwork ann = new ArtificialNeuralNetwork();
		ann.train(train_input, train_output,clust_num);
		
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new Main();
	}

}
